<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Insert title here</title>
		<!--框架必需start-->
		<script type="text/javascript" src="../../libs/js/jquery.js"></script>
		<script type="text/javascript" src="../../libs/js/framework.js"></script>
		<link href="../../libs/css/import_basic.css" rel="stylesheet"
			type="text/css" />
		<link rel="stylesheet" type="text/css" id="skin" prePath="../../" />
		<link rel="stylesheet" type="text/css" id="customSkin" />
		<!--框架必需end-->
		<!-- 表单验证start -->
		<script src="../../libs/js/form/validationRule.js"
			type="text/javascript"></script>
		<script src="../../libs/js/form/validation.js" type="text/javascript"></script>
		<!-- 表单验证end -->
	</head>
	<body>
		<div id="scrollContent">
			<div class="box1" panelWidth="500">
				<fieldset>
					<legend>
						新建用户
					</legend>
					<form name="editform" action="edit.do" method="post"
						target="frmright">
						<input type="hidden" name="id"
							value="${editaccount.id }">
						<input type="hidden" name="regDate"
							value="${editaccount.regDate }">
						<table class="tableStyle" formMode="transparent">
							<tr>
								<td class="ali03">
									用户名：
								</td>
								<td>
									<input type="text" name="username"
										value="${editaccount.username }"
										class="validate[required,length[5,12],custom[noSpecialCaracters]]" />
									<span class="star">*</span>
								</td>
							</tr>
							<tr>
								<td class="ali03">
									姓名：
								</td>
								<td>
									<input name="name" type="text" value="${editaccount.name }"
										class="validate[required,length[2,10]]" />
									<span class="star">*</span>
								</td>
							</tr>
							<tr>
								<td class="ali03">
									密码：
								</td>
								<td>
									<input type="password" id="newpass"
										value="${editaccount.password }"
										class="validate[required,length[5,11],custom[noSpecialCaracters]]" />
									<span class="star">*</span>
								</td>
							</tr>
							<tr>
								<td class="ali03">
									确认密码：
								</td>
								<td>
									<input name="password" value="${editaccount.password }"
										type="password" class="validate[required,confirm[newpass]]"
										type="password" />
									<span class="star">*</span>
								</td>
							</tr>
							<tr>
								<td class="ali03">
									是否管理员：
								</td>
								<td>
									是<input type="radio" name="isAdmin" value="1" <c:out value="${editaccount.isAdmin?'checked':'' }"/> />
									否<input type="radio" name="isAdmin" value="0" <c:out value="${editaccount.isAdmin?'':'checked' }"/> />
									<span class="star">*</span>
								</td>
							</tr>
							<tr>
								<td colspan="2"><div align="center">${MSG_ERROR}</div></td></tr>
							<tr>
								<td colspan="2" class="ali02">
									<input type="submit" value="提交" />
									&nbsp;
									<input type="reset" value="重置" />
								</td>
							</tr>
						</table>
					</form>
				</fieldset>
			</div>
		</div>
	</body>
</html>